<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Admin extends CI_Controller {

	function __construct()
    {
        parent::__construct();
		if (!$this->session->userdata('logged_in')){          		
			redirect('admin/login');
			exit();
		}
    }
	
	public function index()
	{
		$this->load->view('admin/welcome');
	}
	
}
